package com.ruoyi.project.mydy.yearsclass.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;

/**
 * 年代分类对象 dl_years_class
 * 
 * @author mhg
 * @date 2021-10-07
 */
public class DlYearsClass extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键id */
    private Long id;

    /** 年代名 */
    @Excel(name = "年代名")
    private String yearsName;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setYearsName(String yearsName)
    {
        this.yearsName = yearsName;
    }

    public String getYearsName()
    {
        return yearsName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("yearsName", getYearsName())
            .append("createTime", getCreateTime())
            .toString();
    }
}
